﻿using GrayParrot.Web.Formly;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebTest.Metadata
{
    public class CambioDataMetadata
    {
        //[Events(Event = EventTypes.OnChange, Callback = "ChangeCallback")]
        [FormFieldAttribute(Type = FormFieldTypes.Input)]
        [TextTemplateOptionsAttribute(Label = "Palinsesto",
            Description = "Lunghezza max 50 caratteri",
            Placeholder = "Indicare il palinsesto",
            Required = true,
            MinLength = 0,
            MaxLength = 50)]
        public string txtPalinsesto { get; set; }

        //[Events(Event = EventTypes.OnChange, Callback = "ChangeCallback")]
        //[AddOn(Position = Position.Right, Class = "glyphicon glyphicon-ok", OnClick = "CheckCallback")]
        [FormFieldAttribute(Type = FormFieldTypes.Input)]
        [TextTemplateOptionsAttribute(Label = "Avvenimento",
            Description = "Lunghezza max 50 caratteri",
            Placeholder = "Indicare l'avvenimento",
            Required = true,
            MinLength = 0,
            MaxLength = 50)]
        public string txtAvvenimento { get; set; }

        //[Events(Event = EventTypes.OnChange, Callback = "ChangeCallbackDateTime")]
        [FormFieldAttribute(Type = FormFieldTypes.GrayParrotDateTimePicker)]
        [GrayParrotDateTimePickerOptions(Label = "Data Match",
            Placeholder = "Indicare la nuova data dell'avvenimento...",
            Required = true,
            MinuteStep = 1,
            ShowTimePanel = true,
            WithInitialDate = false,
            Format = "dd MM yyyy hh:ii")]
        public DateTime DataMatch { get; set; }

        [FormFieldAttribute(Type = FormFieldTypes.Checkbox)]
        [CheckBoxTemplateOptions(Label = "ForzaInvio",
            Placeholder = "Forza l'invio del cambio data...",
            Disabled = false,
            Required = false)]
        public bool ForzaInvio { get; set; }
    }
}